import request from "@/utils/request";

// 查询培训讲师列表
export function listIecturer(query) {
  return request({
    url: "/cld/iecturer/list",
    method: "get",
    params: query,
  });
}

// 查询培训讲师详细
export function getTrainIecturerStaffListInfo(query) {
  return request({
    url: "/cld/iecturer/getTrainIecturerStaffListInfo",
    method: "get",
    params: query,
  });
}

// 新增培训讲师
export function addIecturer(data) {
  return request({
    url: "/cld/iecturer",
    method: "post",
    data: data,
  });
}

// 修改培训讲师
export function updateIecturer(data) {
  return request({
    url: "/cld/iecturer",
    method: "put",
    data: data,
  });
}

// 删除培训讲师
export function delIecturer(trainIecturerId) {
  return request({
    url: "/cld/iecturer/" + trainIecturerId,
    method: "delete",
  });
}

// 取消任职培训师
export function delCancePosition(trainIecturerId){
  return request({
    url: "/cld/iecturer/delCancePosition/" + trainIecturerId,
    method: "delete",
  });
}